import request from '@/utils/request'

// 查询病历模板列表
export function listCaseModel(query) {
  return request({
    url: '/dms/caseModel/list',
    method: 'get',
    params: query
  })
}

// 查询病历模板详细
export function getCaseModel(id) {
  return request({
    url: '/dms/caseModel/' + id,
    method: 'get'
  })
}

// 新增病历模板
export function addCaseModel(data) {
  return request({
    url: '/dms/caseModel',
    method: 'post',
    data: data
  })
}

// 修改病历模板
export function updateCaseModel(data) {
  return request({
    url: '/dms/caseModel',
    method: 'put',
    data: data
  })
}

// 删除病历模板
export function delCaseModel(id) {
  return request({
    url: '/dms/caseModel/' + id,
    method: 'delete'
  })
}
